<template>
  <div class="alipay">
    <el-table :data="tableData" border style="width: 100%">
      <el-table-column prop="phone" label="手机号" align="center">
      </el-table-column>
      <el-table-column prop="ordernum" label="订单编号" align="center">
      </el-table-column>
      <el-table-column prop="data" label="详情" align="center">
      </el-table-column>
      <el-table-column prop="type" label="异常类型" align="center">
      </el-table-column>
      <el-table-column prop="status" label="订单状态" align="center">
      </el-table-column>
      <el-table-column
          align="center"
          fixed="right"
          label="操作"
      >
        <template slot-scope="scope">
          <el-button type="text" size="small" v-show="scope.row.status==='待审核'">通过</el-button>
          <el-button type="text" size="small" v-show="scope.row.status==='待审核'">不通过</el-button>
        </template>
      </el-table-column>

    </el-table>
  </div>
</template>
<script>
import {exceptions} from '@/api/api.js';

export default {
  data() {
    return {
      tableData: []
    }
  },
  created() {
    this.getData();
  },
  methods: {
    getData(params) {
      exceptions(params)
          .then(res => {
            console.log(res.data);
            this.tableData = res.data.data
          })
    }
  }
}
</script>
<style lang="scss" scoped>
.alipay {

  margin-top: 20px;
}
</style>